package com.education.welco.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "user-service")
@Service
public interface MsgClient {

    //查询学生信息
    @RequestMapping(value = "/sysInfoMsg/addOther", method = RequestMethod.POST)
    public void addSysInfoMsg(@RequestParam(value = "mTitle", required = false) String mTitle,
                              @RequestParam(value = "mContent", required = false) String mContent,
                              @RequestParam(value = "type", required = false) String type,
                              @RequestParam(value = "teaIdList", required = false) List<Integer> teaIdList,
                              @RequestParam(value = "userId", required = false) Integer userId
    );

}
